<script setup lang="ts">
import { ref } from 'vue';

const visible = ref(false)
</script>

<template>
<router-view/>
<button @click="visible=!visible">切换</button>
<XtxDialog title = "头" v-if="visible" v-model="visible">
<div>111</div>
<template #foot>
  <button>测试</button>
</template>
</XtxDialog>
</template>

<style lang="less" scoped>

</style>
